/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/media-video.html#wxsavevideotophotosalbumobject)
 * 保存视频到系统相册。需要用户授权 scope.writePhotosAlbum
 */
export default function save_video_to_photos_album(filePath: string) {
	return new Promise<boolean>((resolve, reject) => {
		wx.saveVideoToPhotosAlbum({
			filePath,
			success() {
				resolve(true);
			},
			fail(res) {
				reject(res);
			}
		});
	});
}

